Skip to content

feat: Add Snap export handler usage tracking #3281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025
Merged

Conversation

david0xd
Copy link
Contributor

@david0xd david0xd commented Mar 31, 2025

This PR moves MetaMetrics tracking of Snap export usage to Snap Controller.

Related issue: #3259

Extension integration PR: MetaMask/metamask-extension#31553
Mobile integration PR: MetaMask/metamask-mobile#14428

@david0xd david0xd self-assigned this Mar 31, 2025
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.06%. Comparing base (37e79af) to head (6848f81).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3281   +/-   ##
=======================================
  Coverage   98.06%   98.06%           
=======================================
  Files         397      397           
  Lines       10898    10929   +31     
  Branches     1714     1720    +6     
=======================================
+ Hits        10687    10718   +31     
  Misses        211      211           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@david0xd david0xd marked this pull request as ready for review April 8, 2025 10:17
@david0xd david0xd requested a review from a team as a code owner April 8, 2025 10:17
@david0xd david0xd changed the title Add Snap export handler usage tracking feat: Add Snap export handler usage tracking Apr 16, 2025
FrederikBolding
FrederikBolding previously approved these changes May 2, 2025
@david0xd david0xd force-pushed the dd/add-handler-tracking branch from 035e985 to 943ff00 Compare May 5, 2025 10:32
david0xd added 2 commits May 5, 2025 12:49
Use registry for metadata

Replace controller with hook approach

Fix broken unit tests

Add unit tests

Fix coverage after rebase

Remove category

Remove async from registry metadata and tracking

Update throttling logic and tests

Rearrange unit tests

Update call to get registry metadata

Remove unused getRegistryMetadata

Refactor tracking call

Add logic optimization for throttling function

Skip preinstalled Snaps tracking

Add error handling for MetaMetrics hook

Add unit test for preinstalled snap
@david0xd david0xd added this pull request to the merge queue May 5, 2025
Merged via the queue into main with commit 87528de May 5, 2025
115 checks passed
@david0xd david0xd deleted the dd/add-handler-tracking branch May 5, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants